.header {
  width: 100%;
  background-image: url("../../assets/title.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: flex;
  justify-content: space-between;
}

:deep .el-dialog__title {
  color: #fff;
}

::deep .el-header {
  --el-header-height: 90px;
}

:deep .el-form-item__label {
  color: #fff;
}

.title {
  flex-grow: 1;
  /* 使标题占据可用空间 */
  display: flex;
  justify-content: center;
  /* 居中标题 */
}

.circle {
  width: 10px;
  height: 10px;
  position: absolute;
  border-radius: 50%;
  background-color: #fff;
  left: 10%;
  transform-origin: 50%;
  animation: circle7124 0.5s alternate infinite ease;
}

.circle.no-animation {
  animation: none;
  /* 禁用动画 */
}

@keyframes circle7124 {
  0% {
    top: 20px;
    height: 5px;
    border-radius: 50px 50px 25px 25px;
    transform: scaleX(1.7);
  }

  40% {
    height: 15px;
    border-radius: 50%;
    transform: scaleX(1);
  }

  100% {
    top: 0%;
  }
}

.circle:nth-child(2) {
  left: 45%;
  animation-delay: 0.2s;
}

.circle:nth-child(3) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

.shadow {
  width: 20px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.9);
  position: absolute;
  top: 30px;
  transform-origin: 50%;
  z-index: -1;
  left: 15%;
  filter: blur(1px);
  animation: shadow046 0.5s alternate infinite ease;
}

@keyframes shadow046 {
  0% {
    transform: scaleX(1.5);
  }

  40% {
    transform: scaleX(1);
    opacity: 0.7;
  }

  100% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }
}

.shadow:nth-child(4) {
  left: 45%;
  animation-delay: 0.2s;
}

.shadow:nth-child(5) {
  left: auto;
  right: 15%;
  animation-delay: 0.3s;
}

.loader {
  width: 40px;
  height: 20px;
  --m: no-repeat linear-gradient(90deg, #000 70%, #0000 0);
  -webkit-mask: var(--m) calc(0 * 100% / 4) 100% / calc(100% / 5)
      calc(1 * 100% / 5),
    var(--m) calc(1 * 100% / 4) 100% / calc(100% / 5) calc(2 * 100% / 5),
    var(--m) calc(2 * 100% / 4) 100% / calc(100% / 5) calc(3 * 100% / 5),
    var(--m) calc(3 * 100% / 4) 100% / calc(100% / 5) calc(4 * 100% / 5),
    var(--m) calc(4 * 100% / 4) 100% / calc(100% / 5) calc(5 * 100% / 5);
  background: linear-gradient(#514b82 0 0) left/0% 100% no-repeat #ddd;
  animation: l14 2s infinite steps(6);
  animation-play-state: running;
  /* 默认状态为运行 */
}

.paused {
  animation-play-state: paused;
  /* 暂停动画 */
}

@keyframes l14 {
  100% {
    background-size: 120% 100%;
  }
}

.custom-button {
  width: 120px;
  height: 30px;
  display: inline-block;
  padding: 15px 30px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  text-align: center;
  text-decoration: none;
  outline: none;
  border: none;
  border-radius: 5px;
  background-image: url("../../assets/icons/按钮.png");
  /* 替换为你的背景图片URL */
  background-size: cover;
  /* 确保背景图片覆盖整个按钮 */
  background-position: center;
  cursor: pointer;
  transition: filter 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-button span {
  position: relative;
  z-index: 1;
  /* 确保文本在背景图片上方 */
}

.custom-button:hover {
  filter: brightness(2);
  /* 移入时变亮 */
}

.my-text {
  text-align: center;
  color: transparent;
  /* 文字颜色设为透明，因为我们使用背景图片作为填充 */
  -webkit-background-clip: text;
  /* 兼容旧版WebKit浏览器 */
  background-clip: text;
  /* 现代浏览器 */
  background-image: linear-gradient(to right, #287ee0, #9ec8f7);
  /* 线性渐变，从左到右，颜色从#ff7e5f渐变到#feb47b */
  -webkit-text-fill-color: transparent;
  /* 在旧版WebKit浏览器中确保文字颜色透明 */
}

.face-card-container {
  display: flex;
  flex-wrap: wrap;
  overflow-y: auto;
  max-height: 700px;
}

.face-card {
  width: calc(12.5% - 20px);
  margin: 10px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
  position: relative; // 确保卡片有相对定位
  will-change: transform; // 告诉浏览器该元素即将进行变换，优化渲染性能

  &:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transform: scale(1.5);
    z-index: 1;
    transform-origin: center; // 设置缩放原点为左上角
    background-color: rgba(0, 0, 0, 0.8);
    // 移除绝对定位，避免卡片位置错乱
    // position: absolute;
  }
}

.face-image {
  width: 100px;
  height: 100px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.face-name {
  display: block;
  padding: 10px;
  color: #fff;
}

.el-dialog__body {
  overflow: visible;
}
